cmake_minimum_required(VERSION 3.26)
project(PnP_camera_pose)

set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV 4.5 REQUIRED)
find_package(realsense2)

include_directories(include)
include_directories(${realsense_INCLUDE_DIR})

add_executable(PnP_camera_pose main.cpp)
target_link_libraries(PnP_camera_pose
        ${OpenCV_LIBS}
)

add_executable(PnP_camera_pose1
        main1.cpp
        include/PNPSolver.cpp)
target_link_libraries(PnP_camera_pose1
        ${OpenCV_LIBS}
)

add_executable(PnP_camera_pose2
        main2.cpp
        include/PNPSolver.cpp)
target_link_libraries(PnP_camera_pose2
        ${OpenCV_LIBS}
        ${realsense2_LIBRARY}
)
